package com.orion.cfg;

import feign.Feign;
import feign.Retryer;
import org.springframework.context.annotation.Bean;

/**
 * @author Administrator
 * @date 2021/10/22
 */
//@Configuration //影响feign hystrix
public class CustomFeignConfig {


    @Bean
    public Feign.Builder feignBuilder() {
        return Feign.builder()
                .queryMapEncoder(new QueryMapImproveEncoder())
                .retryer(Retryer.NEVER_RETRY);
    }

}
